package com.example.zxq_server.whbgy.sppack;

import android.content.Context;
import android.content.SharedPreferences;

/**
 * Created by zxq_Server on 2017/9/9.
 */
public class SpImp implements IPhoneFile
{

    SharedPreferences sp;
    public SpImp(Context context)
    {
         sp=context.getSharedPreferences("whbgy",Context.MODE_PRIVATE);
    }


    final String phoneKey="phoneFile";
    @Override
    public void setPhoneFile(String phoneFile) {
           sp.edit().putString(phoneKey,phoneFile).commit();
    }

    @Override
    public String getPhoneFile() {
       String phoneFile=sp.getString(phoneKey,"");
        return phoneFile;
    }
}
